//
//  IMTList.h
//  LinePhoto
//
//  Created by Kyle on 14-4-13.
//  Copyright (c) 2014年 孙凯旋. All rights reserved.
//

#import "IMTModel.h"

@interface IMTList : IMTModel <NSCoding>

@property(nonatomic, strong) NSMutableArray *dataList;
@property(nonatomic, strong) NSMutableArray *viewModelList;
@property(nonatomic, strong) NSString *lastId;
@property(nonatomic) NSInteger pageIndex;
@property(nonatomic) NSInteger pageSize;
@property(nonatomic) NSInteger totalCount;
@property(nonatomic) NSInteger totalPages;
@property(nonatomic) BOOL isReload; //是否为重新加载数据 
@property(nonatomic) BOOL loadMore;

- (id)initWithCoder:(NSCoder *)aDecoder;

- (void)encodeWithCoder:(NSCoder *)aCoder;

//返回计数
- (NSInteger)count;

//返回对象
- (id)objectAtIndex:(NSInteger)index;

//移除所有对象
- (void)removeAllObjects;

//移除对象
- (void)removeObjectAtIndex:(NSInteger)index;

- (void)addObject:(id)object;

- (void)insertObject:(id)object atIndex:(NSUInteger)index;

- (void)loadArchiver;

- (void)saveArchiver;

//加载页码
- (void)loadPageInfoWithData:(id)data;


@end
